package models

import (
	"gitee.com/libwiki/go-zero-lib/package/orm/vars"
)

// Category 行业分类
type Category struct {
	IDField
	Code      string    `json:"code" gorm:"type:varchar(64);comment:分类唯一code"`
	Name      string    `json:"name" gorm:"type:varchar(32);comment:分类名称"`
	Desc      string    `json:"desc" gorm:"comment:分类说明"`
	Icon      string    `json:"icon" gorm:"comment:分类图标（短图标）"`
	LongImage string    `json:"long_image" gorm:"comment:分类长图（长图）"`
	Status    bool      `json:"status" gorm:"comment:禁用、启用状态"`
	Uid       uint      `json:"uid" gorm:"default:0;comment:所属用户，0：公告分类"`
	Type      vars.Enum `json:"type" gorm:"default:industry;type:enum('industry');comment:行业分类"`
}
